<?php
class Model_DbTable_SiteSetting extends Apps_Db_Table_Abstract {
	protected $_name = 'site_setting';

	const STATUS_ACTIVE 	= 1;
	const STATUS_INACTIVE 	= 0;

	//get site info
	public function getSiteSetting() {
		$q = $this->_db
				  ->select()
				  ->from($this->_name)
				  ->where('status = 1')
			      ->columns(array('reply_message_enquire'    => 'reply_message_enquire',
    		 					  'reply_message_send_mail'  => 'reply_message_send_mail',
    		 					  'reply_message_contact'    => 'reply_message_contact'));
 		return $q;
	}

	//get meta tag
	public function getMetaTag() {
		$q = $this->_db
				  ->select()
				  ->from($this->_name)
				  ->where('status = 1')
				  ->columns(array('meta_keyword'     => 'meta_keyword',
				                  'meta_description' => 'meta_description',
				                  'header_title'     => 'header_title'));

 		return $q->query()->fetch();
	}
}